<!doctype html>
<html lang="en" style="width: 100%;height: 100%">

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<link rel="stylesheet" href="css/orderform.css">
		<link rel="stylesheet" type="text/css" href="css/login.css"/>
		<link rel="stylesheet" type="text/css" href="css/header.css" />
		<link rel="shortcut icon" type="image/x-icon" href="img/3.ico" media="screen" />
		<title>支付成功</title>

	</head>

	<body >
		<div class="sucesscontain">
			<p>谢谢您的配合，交易已成功</p>
			<div class="sucess"></div>
			<div class="paymoney">
				<p>支付金额￥</p>
				<div style="color: orangered;"></div>
			</div>
		</div>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script src="js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/login.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/alertLogin.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/header.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/addheader.js" type="text/javascript" charset="utf-8"></script>
		<script>
			$("body").addHeader()
			var userid =$.cookie("userId")
			$.get("/getOrder", {
				userId: userid
			}, function(data) {
				$(".paymoney").empty()
				$(".paymoney").append(`<p>支付金额￥</p><div style="color: orangered;">${data.totalPrice}</div>`)
			})
			setTimeout(function(){location.href="orderform.html"},1500)<!-- 1.5s后跳到我的订单页面 -->
			
		</script>
	</body>

</html>